//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.jf.smali;

import com.google.common.collect.ImmutableSet;
import com.google.common.primitives.Ints;
import java.util.Comparator;
import java.util.Set;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.jf.dexlib2.base.BaseMethodParameter;
import org.jf.dexlib2.iface.Annotation;

public class SmaliMethodParameter extends BaseMethodParameter implements WithRegister {
    public final int register;
    @Nonnull
    public final String type;
    @Nonnull
    public Set<? extends Annotation> annotations;
    @Nullable
    public String name;
    public static final Comparator<WithRegister> COMPARATOR = new Comparator<WithRegister>() {
        public int compare(WithRegister o1, WithRegister o2) {
            return Ints.compare(o1.getRegister(), o2.getRegister());
        }
    };

    public SmaliMethodParameter(int register, @Nonnull String type) {
        this.register = register;
        this.type = type;
        this.annotations = ImmutableSet.of();
    }

    public int getRegister() {
        return this.register;
    }

    @Nonnull
    public String getType() {
        return this.type;
    }

    @Nonnull
    public Set<? extends Annotation> getAnnotations() {
        return this.annotations;
    }

    @Nullable
    public String getName() {
        return this.name;
    }

    @Nullable
    public String getSignature() {
        return null;
    }
}
